package com.dxysun.spring.service;

import javax.inject.Inject;
import javax.inject.Named;


//@Service
@Named("myService")  // @ManagedBean("movieListener")
public class MyService
{

    private SimpleAccountService accountService;

    private String helloStr;

//    @Autowired
    @Inject
    private HelloService helloService1;

    public MyService()
    {
        System.out.println("MyService init");
    }

    public String doService()
    {
        return "do something";
    }

    public String getHelloStr()
    {
        return helloStr;
    }

    public void setHelloStr(String helloService)
    {
        this.helloStr = helloService;
    }

    public SimpleAccountService getAccountService()
    {
        return accountService;
    }

    public void setAccountService(SimpleAccountService accountService)
    {
        this.accountService = accountService;
    }

    public HelloService getHelloService()
    {
        return helloService1;
    }

    public void setHelloService(HelloService helloService)
    {
        this.helloService1 = helloService;
    }
}
